﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Microsoft.Practices.Unity;

namespace YXQ.Common.Web
{
    public static class WebSingleton
    {
        public static IUnityContainer ApplicationContainer
        {
            get
            {
                return HttpContext.Current.Application["Container"] as IUnityContainer;
            }
            set
            {
                HttpContext.Current.Application["Container"] = value;
            }
        }
    }
}
